<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s" %>
    <%@taglib uri="/struts-dojo-tags" prefix="sx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<SCRIPT src="/js/jquery/jquery-1.7.2.js" type=text/javascript></SCRIPT>
<SCRIPT src="/js/basic/top.js" type=text/javascript></SCRIPT>
<sx:head/>
</head>
<body>
	<div  class="jd_menu" id="topNav">
		<span class="top_span">
			<span class="top_m_l">
			<s:if test="user==null">
					<form   action="/forward/view/basic_login.go" onsubmit="return checkLogin()">
						邮箱:<input type="text" name="user.userEmail" ></input>
						密码:<input type="password" name="user.passWord" ></input>
						<sx:submit type="Button" targets="top_show" value="登录" ></sx:submit>
					</form>
					<span style="color:red;">${message}</span>
			</s:if>
			<s:else>
				欢迎您！<a href="/control/book/action_managerUI.go" target="_blank" class="huilink">${user.userName}</a>！ 
					<s:url namespace="/forward/view" action="basic_loginOut" id="login_our"></s:url>
					<sx:a href="%{login_our}" targets="top_show">退出</sx:a>
			</s:else>
			<a href="/forward/view/basic_register.go" target="_blank">注册</a>
			</span>
			<span class="top_m_r">
						<a href="/control/book/cart_sell.go"  target="_blank">购物车</a> | 
						<a href="/forward/view/basic_service.go" target="_blank">服务中心</a>  | 
			</span>	
		</span>
	</div>
</body>
</html>